<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','Admin');
?>	
<form name="myform" action="<?php echo U('index'); ?>" method="post">
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th>ID</th>
            <th align="center">收款人</th>
            <th align="center">收款账号</th>            
            <th align="center">申请金额</th>          
            <th align="center">提现u币</th>                                
            <th align="center">提现状态</th>                      
            <th align="center">提现时间</th>   
              <th align="center">提现种类</th>   
                <th align="center">处理时间</th>      
			<th>管理操作</th>
            </tr>
        </thead>
    <tbody>
<?php foreach ($cash as $v){ ?>
      	<tr>
        <td align="center"><?php echo $v[cash_id];?><input type="hidden" name="userid" value="7"></td>
   			<td align="center"><?php echo $v[payee];?></td>
   			<td align="center"><?php echo $v[account];?></td>
   			<td align="center"><?php echo $v[apply_money];?></td>               
        	<td align="center"><?php echo $v[apply_coin];?></td>        
        	<td align="center">
        	<?php if($v[cash_status]==1){
        		echo 已审核提现;
        	}else{
        		echo 未审核提现;
        	}
        	?></td>    
        	<td align="center"><?php echo date("Y-m-d",$v[cash_time]);?></td>        
        	<td align="center"><?php if($v[cash_type] == 'alipay'){ echo '支付宝';}if($v[cash_type] == 'tenpay'){echo'财付通'; }if($v[cash_type] == 'bank'){echo'银行'; };?></td> 
        	<td align="center">
         <?php if($v[handle] == NULL){echo "无";}else{echo date("Y-m-d",$v[handle]);}?>
          </td>         			
   			<td align="center">
        <a href="javascript:edit('<?php echo $v['cash_id']; ?>');void(0);"><?php echo L('verify_type'); ?></a>
        <a href="javascript:deletes('<?php echo $v['cash_id']; ?>')">删除</a>
        </td>
   		</tr>
   		<?php }?>
      		
         <tr>
        <td colspan="9" align="right"><?php echo $pages ?></td>
      </tr>
    </tbody>
    </table>
    
</div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
window.top.$('#display_center_id').css('display','none');
function edit(id, title) {
  window.top.art.dialog({id:'edit'}).close();
  window.top.art.dialog({title:'<?php echo L('cash_info')?>--'+title, id:'edit', iframe:'?m=Document&c=Cash&a=update&id='+id ,width:'500px',height:'250px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
  var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
}
function deletes(id){
  if(confirm("<?php echo L('affirm_delete')?>") == true){
    window.location.href = "?m=Document&c=Cash&a=delete&id="+id;
  }
}
</script>
